import React, {Component} from 'react';
import {NavLink} from 'react-router-dom';
import {Pagination} from "antd";

export default class TechnicalService extends Component {
    onChange(a, b) {
        alert("第" + a + "页，每页数据是" + b + "条");
    };

    render() {
        return (
            <div className="goverment-news">
                <div className="media">
                    <div className="media-body">
                        <h4 className="media-heading">
                            <small className="pull-right">2018-12-12</small>
                            <NavLink exact to={{pathname: '/technical/detail', state: {id: "技术服务001"}}}>技术服务001</NavLink>
                        </h4>
                        技术服务001技术服务001技术服务001技术服务001技术服务001技术服务001技术服务001技术服务001技术服务001技术服务001技术服务001技术服务001
                    </div>
                </div>

                <Pagination className="text-center" defaultCurrent={6} onChange={this.onChange} total={500}/>
            </div>
        );
    }
}